﻿/*********************************************************************
 *
 *                             NOTICE
 *               COPYRIGHT (c) 2012 Panoscopix Software, Inc.
 *                UNPUBLISHED - ALL RIGHTS RESERVED
 * 
 *      This program is confidential, proprietary, and a trade
 *   secret of Panoscopix Software, Inc. The receipt or possession of
 *     this program does not convey any rights to reproduce or
 *      disclose its contents, or to manufacture, use, or sell
 *       anything that it may describe, in whole or in part, 
 *   without the specific written consent of Panoscopix Software, Inc.
 *
 * FileMetaData is the set of data the file/dir, other than its contents:
 *  - ID
 *  - Name
 *  - Size
 *  - CreationDate
 * 
 *******************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FileSystem;

namespace FileSystem
{
    class NodeMetaData : INodeMetaDataVO
    {
	    public String id;
	    public String name;
	    public int size;
	    public DateTime creationDate;
	
	    public NodeMetaData(String id, String name, int size, DateTime creationDate) {
		    this.id = id;
		    this.name = name;
		    this.size = size;
		    this.creationDate = creationDate;
	    }
	
	    public String getID() {
		    return id;
	    }
	
	    public String getName() {
		    return name;
	    }
	
	    public int getSize() {
		    return size;
	    }
	
	    public String getCreationTimestamp() {
		    return creationDate.ToString();
	    }

        public NodeMetaData copy() {
            return new NodeMetaData(id, name, size, creationDate);
        }
    }
}
